﻿using CHSystemApi.Framework.Extension;
using System.Collections.Generic;

namespace CHSystemApi.Framework.AuthServices
{
    public interface IPermissionService
    {
        /// <summary>
        /// 权限验证
        /// </summary>
        /// <typeparam name="T">业务逻辑服务</typeparam>
        /// <param name="info">登录信息</param>
        /// <param name="validates">验证内容</param>
        /// <returns></returns>
        public T ValidatePermission<T>(List<PermissionContent> validates) where T : IValidate;

        /// <summary>
        /// 设置用户权限
        /// </summary>
        /// <param name="userid">用户编号</param>
        public IPermissionService SetRules(int userid);
    }
}
